From: Carlos Garnacho Date: Tue, 27 Nov 2018 12:35:46 +0000 (+0100) Subject: modalDialog: Do not sync display here X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~81 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=82c7090e9ec9698b53128ad89eb11dd795ad89fb;p=gnome-shell.git modalDialog: Do not sync display here This gdk_display_sync() call was added in commit a40daa3c22 so the alt-f2 dialog is able to spawn commands that trigger grabs on startup (eg. xmag/ xkill). This seems worthwhile to do only on the X11 backend, and handling it in mutter backend code seems cleaner. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317 --- diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index d6ebcb5f3..739de2d5e 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -1,7 +1,6 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Clutter = imports.gi.Clutter; -const Gdk = imports.gi.Gdk; const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; const Meta = imports.gi.Meta; @@ -197,7 +196,6 @@ var ModalDialog = class { else this._savedKeyFocus = null; Main.popModal(this._group, timestamp); - Gdk.Display.get_default().sync(); this._hasModal = false; if (!this._shellReactive)